package conf

import "time"

type HttpConfig struct {
	Timeout time.Duration // request timeout
}

type DownloadConfig struct {
	Concurrent int           // download concurrent
	Delay      time.Duration // download delay time
}

type Config struct {
	Http       HttpConfig
	Downloader DownloadConfig
}

var (
	http = HttpConfig{
		Timeout: time.Second * 5,
	}

	download = DownloadConfig{
		Concurrent: 10,
		Delay:      0,
	}

	DefaultConfig = &Config{
		Http:       http,
		Downloader: download,
	}
	UserConfig *Config = nil
)
